package com.cn.yang.service.impl;

import com.cn.yang.bean.DianDao;
import com.cn.yang.bean.Weiji;
import com.cn.yang.dao.WeijiDao;
import com.cn.yang.service.WeijiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WeijiServiceImpl implements WeijiService {
    @Autowired
    WeijiDao weijiDao;
    @Override
    public int weijiAdd(Weiji weiji) {
        return weijiDao.weijiAdd(weiji);
    }

    @Override
    public List<DianDao> selectAllData(Weiji weiji) {
        return weijiDao.selectAllData(weiji);
    }
}
